// 开发环境
const dev = {
  protocol: 'http:',
  baseURL: 'http://192.168.110.198:9000/qianfoyan-api',
  basePATH: '/qianfoyan-api',
  headers: {
    'Content-Type': 'application/json;charset=utf-8',
    website: 'localhost:8089'
  },
  rules: [
    { key: 'host', value: 'http://192.168.110.198:9000/qianfoyan-api' }
  ]
}

// 生产环境
const prod = {
  protocol: 'http:',
  baseURL: 'http://192.168.110.198:9000/qianfoyan-api',
  basePATH: '/qianfoyan-api',
  headers: {
    'Content-Type': 'application/json;charset=utf-8',
    website: 'localhost:8089'
  },
  rules: [
    { key: 'host', value: 'http://192.168.110.198:9000/qianfoyan-api' }
  ]
}

const env = /dev/i.test(process.env.NODE_ENV) ? dev : prod

export default env
